package com.slw.caiji.service;

import com.slw.caiji.Vo.SysTemplateVo;
import com.slw.caiji.dto.SysTemplate;
import com.slw.caiji.utils.Result;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

@Service
public interface SysTemplateService  {

    Result getSysTemplateList(SysTemplateVo sysTemplateVo);

    Result delTemplate(String ids);

    Result detailTemplate(String id);

    Result updateTemplate(SysTemplate sysTemplate);

    Result addTemplate(SysTemplate sysTemplate);

    Result importTemplate(MultipartFile file) throws IOException;

    void exportTemplate(SysTemplate sysTemplate, HttpServletResponse httpServletResponse) throws IOException;
}
